<?php

include_once("core/controller.php");
include_once("core/versionHandler.php");
/**
 * This Controller is used to install a version
 * @copyright inovia
 * @package oolime_manager 
 *
 */
class HomeScaffolding extends Controller {
   
   
   //todo verifier le niveau d'utilisateur
   protected function isLegitimate(){
      return true;
   }



   /**
    * Function doing the actions of the Controller
    * 
    */
   protected function actions(){

    $ParentNode = $this->response->doc->createElement('scaffold');
    $SonNode  	= $this->response->doc->createElement('errors');
    $valueSon 	= $this->response->doc->createTextNode('0');
    $SonNode->appendChild($valueSon);
    $ParentNode->appendChild($SonNode);
    $this->response->add($ParentNode);


    $dateNode = $this->response->doc->createElement("date");
    $dateNode->appendChild($this->response->doc->createTextNode(date("d/m/Y G:i")));
    $this->response->add($dateNode);  

    $this->response->setXSLT("views/manager/scaffolding.xsl");

   }


   /**
    * Function doing default actions of the Controller
    *
    */
   protected function defaultActions(){
      
   }

}



?>
